﻿using System;

namespace Cos.Core.Service
{
    public interface ISessionService
    {
        /**
     * Called when the user is logged in
     * 
     * @param username the username of the user
     * @param password the password of the user
     * @return true if the user is logged in, false otherwise
     */
        bool SignIn(String username, String password);

        /**
         * Called when the user is logged out
         * 
         * @return true if the user has been logged out successfully, false otherwise
         */
        bool SignOut();

        /**
         * Check if the user is authenticated
         * 
         * @return true if the user is authenticated false otherwise
         */
        bool Authenticated { get; }
    }
}